<extend name="admin/main"/>

<block name="title">
    <title>联系我们</title>
</block>

<block name="css"></block>

<block name="heading">联系我们</block>

<block name="content">
    <div class="col-md-offset-4 col-md-4">
        <div class="panel panel-primary">
            <div class="panel-heading">编辑联系我们</div>
            <div class="panel-body">
                <form action="/admin/WebSetting/updateContactUs" method="post" enctype="multipart/form-data">
                    <input type="hidden" name="id" class="hidden" value="{$contact['id']}">
                    <div class="form-group">
                        <label for="name">公司名称</label>
                        <input type="text" id="name" name="name" class="form-control" required value="{$contact['name']}">
                    </div>
                    <div class="form-group">
                        <label for="address">公司地址</label>
                        <input type="text" id="address" name="address" class="form-control" required value="{$contact['address']}">
                    </div>
                    <div class="form-group">
                        <label for="tel">联系电话</label>
                        <input type="tel" id="tel" name="tel" class="form-control" required value="{$contact['tel']}">
                    </div>
                    <div class="form-group">
                        <label for="fax">传真</label>
                        <input type="tel" id="fax" name="fax" class="form-control" value="{$contact['fax']}">
                    </div>
                    <div class="form-group">
                        <label for="email">邮箱地址</label>
                        <input type="email" id="email" name="email" class="form-control" required value="{$contact['email']}">
                    </div>
                    <div class="form-group">
                        <label for="website">公司网站</label>
                        <input type="text" id="website" name="website" class="form-control" required value="{$contact['website']}">
                    </div>
                    <div class="form-group">
                        <label for="icon">logo</label>
                        <input type="file" id="icon" name="icon" class="form-control">
                        <div style="width: 100px;margin-top: 10px">
                            <img src="{$contact['icon']}" width="100">
                        </div>
                    </div>
                    <button class="btn btn-sky-alt"><i class="fa fa-upload"></i> 提交</button>
                </form>
            </div>
        </div>
    </div>
</block>

<block name="js">
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/demo/demo-switcher.js"></script>
    <script type="text/javascript" src="__PUBLIC__/assets/plugins/bootbox/bootbox.js"></script>
    <script>
        $(document).ready(function () {
        });
    </script>
</block>
